package cn.hc.zhongye.admin.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ly
 * @since 2018-04-23
 */
@TableName("hx_user")
public class HxUser extends Model<HxUser> {

    private static final long serialVersionUID = 1L;

    /**
     * GUID
     */
    private String userid;
    private String phone;
    private String pwd;
    private String photo;
    private String name;
    /**
     * 男/女
     */
    private String sex;
    private String position;
    private Date createdate;
    private Integer status;
    /**
     * 设备id
     */
    private String deviceids;
    @TableId(value = "ordernum", type = IdType.AUTO)
    private Integer ordernum;


    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getDeviceids() {
        return deviceids;
    }

    public void setDeviceids(String deviceids) {
        this.deviceids = deviceids;
    }

    public Integer getOrdernum() {
        return ordernum;
    }

    public void setOrdernum(Integer ordernum) {
        this.ordernum = ordernum;
    }

    @Override
    protected Serializable pkVal() {
        return this.ordernum;
    }

    @Override
    public String toString() {
        return "HxUser{" +
        "userid=" + userid +
        ", phone=" + phone +
        ", pwd=" + pwd +
        ", photo=" + photo +
        ", name=" + name +
        ", sex=" + sex +
        ", position=" + position +
        ", createdate=" + createdate +
        ", status=" + status +
        ", deviceids=" + deviceids +
        ", ordernum=" + ordernum +
        "}";
    }
}
